package com.wzq.design.annotation.dataValid;

import com.wzq.ssm.parent.tools.dataValid.DataValid;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@DataValid
public @interface UserValid {
    /**
     * 表名
     *
     * @return 比如 base_user
     */
    @AliasFor(annotation = DataValid.class)
    String tableName() default "base_user";

    /**
     * 关联字段
     *
     * @return 比用用户信息
     */
    @AliasFor(annotation = DataValid.class)
    String keyField() default "id";

}
